package com.example.demo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author YuanYuan
 * @Date 2023/5/1
 * @Time 22:45
 */

@Component
@ConfigurationProperties("student")
@Data
public class Student {
    public int id;
    public String name;
    public int age;
}
